package com.example.springboot_manage.service.impl;

import com.example.springboot_manage.result.BaseResult;
import com.example.springboot_manage.util.ResultUtil;
import com.example.springboot_manage.repository.GoodsImagesMapper;
import com.example.springboot_manage.pojo.GoodsImages;
import com.example.springboot_manage.service.GoodsImagesService;
import com.example.springboot_manage.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsImagesServiceImpl implements GoodsImagesService {

    @Autowired
    private GoodsImagesMapper goodsImagesMapper;

    @Override
    public BaseResult saveGoodsImages(GoodsImages goodsImages) {
        int result = goodsImagesMapper.insertSelective(goodsImages);
        return result > 0 ? BaseResult.success() : BaseResult.error();
    }
}
